home *** CD-ROM | disk | FTP | other *** search
/ Toy Story Free! Interactive / Toy Story.iso / pc / DATA / math.swf / scripts / frame_53 / DoAction.as
Encoding:
Text File  |  2010-01-27  |  5.3 KB  |  322 lines

  1. clock.gotoAndPlay(1);
  2. s1._visible = true;
  3. s2._visible = true;
  4. s3._visible = true;
  5. s4._visible = true;
  6. s5._visible = true;
  7. s6._visible = true;
  8. s7._visible = true;
  9. s8._visible = true;
  10. s9._visible = true;
  11. s10._visible = true;
  12. s16._visible = true;
  13. s12._visible = true;
  14. s27._visible = true;
  15. s14._visible = true;
  16. a1._visible = true;
  17. a2._visible = true;
  18. a3._visible = true;
  19. a4._visible = true;
  20. a5._visible = true;
  21. a6._visible = true;
  22. a7._visible = true;
  23. a8._visible = true;
  24. a9._visible = true;
  25. s1._x = 196;
  26. s1._y = 88;
  27. s1.onPress = function()
  28. {
  29.    this.startDrag();
  30.    s1._rotation = 0;
  31. };
  32. s1.onRelease = function()
  33. {
  34.    this.stopDrag();
  35.    s1._rotation = -15;
  36.    s1._x = 196;
  37.    s1._y = 88;
  38.    sfx.gotoAndPlay("no");
  39. };
  40. s2._x = 608;
  41. s2._y = 60;
  42. s2.onPress = function()
  43. {
  44.    this.startDrag();
  45.    s2._rotation = 0;
  46. };
  47. s2.onRelease = function()
  48. {
  49.    this.stopDrag();
  50.    s2._rotation = 15;
  51.    s2._x = 608;
  52.    s2._y = 60;
  53.    sfx.gotoAndPlay("no");
  54. };
  55. s3._x = 658;
  56. s3._y = 70;
  57. s3.onPress = function()
  58. {
  59.    this.startDrag();
  60. };
  61. s3.onRelease = function()
  62. {
  63.    this.stopDrag();
  64.    s3._x = 658;
  65.    s3._y = 70;
  66.    sfx.gotoAndPlay("no");
  67. };
  68. s4._x = 242;
  69. s4._y = 62;
  70. s4.onPress = function()
  71. {
  72.    this.startDrag();
  73.    s4._rotation = 0;
  74. };
  75. s4.onRelease = function()
  76. {
  77.    this.stopDrag();
  78.    if(this.hitTest(a2))
  79.    {
  80.       a2._visible = false;
  81.       s4._visible = false;
  82.       score += 10;
  83.       sfx.gotoAndPlay("yes");
  84.       nextFrame();
  85.    }
  86.    else
  87.    {
  88.       s4._rotation = 15;
  89.       s4._x = 242;
  90.       s4._y = 62;
  91.       sfx.gotoAndPlay("no");
  92.    }
  93. };
  94. s5._x = 297;
  95. s5._y = 62;
  96. s5.onPress = function()
  97. {
  98.    this.startDrag();
  99. };
  100. s5.onRelease = function()
  101. {
  102.    this.stopDrag();
  103.    s5._x = 297;
  104.    s5._y = 62;
  105.    sfx.gotoAndPlay("no");
  106. };
  107. s6._x = 355;
  108. s6._y = 60;
  109. s6.onPress = function()
  110. {
  111.    this.startDrag();
  112.    s6._rotation = 0;
  113. };
  114. s6.onRelease = function()
  115. {
  116.    this.stopDrag();
  117.    if(this.hitTest(a7))
  118.    {
  119.       a7._visible = false;
  120.       s6._visible = false;
  121.       score += 10;
  122.       sfx.gotoAndPlay("yes");
  123.       nextFrame();
  124.    }
  125.    else
  126.    {
  127.       s6._rotation = -15;
  128.       s6._x = 355;
  129.       s6._y = 60;
  130.       sfx.gotoAndPlay("no");
  131.    }
  132. };
  133. s7._x = 411;
  134. s7._y = 65;
  135. s7.onPress = function()
  136. {
  137.    this.startDrag();
  138.    s7._rotation = 0;
  139. };
  140. s7.onRelease = function()
  141. {
  142.    this.stopDrag();
  143.    s7._rotation = 15;
  144.    s7._x = 411;
  145.    s7._y = 65;
  146.    sfx.gotoAndPlay("no");
  147. };
  148. s8._x = 556;
  149. s8._y = 63;
  150. s8.onPress = function()
  151. {
  152.    this.startDrag();
  153. };
  154. s8.onRelease = function()
  155. {
  156.    this.stopDrag();
  157.    if(this.hitTest(a3))
  158.    {
  159.       a3._visible = false;
  160.       s8._visible = false;
  161.       score += 10;
  162.       sfx.gotoAndPlay("yes");
  163.       nextFrame();
  164.    }
  165.    else
  166.    {
  167.       s8._x = 556;
  168.       s8._y = 63;
  169.       sfx.gotoAndPlay("no");
  170.    }
  171. };
  172. s9._x = 713;
  173. s9._y = 98;
  174. s9.onPress = function()
  175. {
  176.    this.startDrag();
  177. };
  178. s9.onRelease = function()
  179. {
  180.    this.stopDrag();
  181.    if(this.hitTest(a1))
  182.    {
  183.       a1._visible = false;
  184.       s9._visible = false;
  185.       score += 10;
  186.       sfx.gotoAndPlay("yes");
  187.       nextFrame();
  188.    }
  189.    else
  190.    {
  191.       s9._x = 713;
  192.       s9._y = 98;
  193.       sfx.gotoAndPlay("no");
  194.    }
  195. };
  196. s10._x = 192;
  197. s10._y = 209;
  198. s10.onPress = function()
  199. {
  200.    this.startDrag();
  201.    s10._rotation = 0;
  202. };
  203. s10.onRelease = function()
  204. {
  205.    this.stopDrag();
  206.    if(this.hitTest(a8))
  207.    {
  208.       a8._visible = false;
  209.       s10._visible = false;
  210.       score += 10;
  211.       sfx.gotoAndPlay("yes");
  212.       nextFrame();
  213.    }
  214.    else
  215.    {
  216.       s10._rotation = -15;
  217.       s10._x = 192;
  218.       s10._y = 209;
  219.       sfx.gotoAndPlay("no");
  220.    }
  221. };
  222. s16._x = 733;
  223. s16._y = 162;
  224. s16.onPress = function()
  225. {
  226.    this.startDrag();
  227.    s16._rotation = 0;
  228. };
  229. s16.onRelease = function()
  230. {
  231.    this.stopDrag();
  232.    if(this.hitTest(a9))
  233.    {
  234.       a9._visible = false;
  235.       s16._visible = false;
  236.       score += 10;
  237.       sfx.gotoAndPlay("yes");
  238.       nextFrame();
  239.    }
  240.    else
  241.    {
  242.       s16._rotation = -15;
  243.       s16._x = 733;
  244.       s16._y = 162;
  245.       sfx.gotoAndPlay("no");
  246.    }
  247. };
  248. s12._x = 181;
  249. s12._y = 150;
  250. s12.onPress = function()
  251. {
  252.    this.startDrag();
  253. };
  254. s12.onRelease = function()
  255. {
  256.    this.stopDrag();
  257.    if(this.hitTest(a6))
  258.    {
  259.       a6._visible = false;
  260.       s12._visible = false;
  261.       score += 10;
  262.       sfx.gotoAndPlay("yes");
  263.       nextFrame();
  264.    }
  265.    else
  266.    {
  267.       s12._x = 181;
  268.       s12._y = 150;
  269.       sfx.gotoAndPlay("no");
  270.    }
  271. };
  272. s27._x = 194;
  273. s27._y = 281;
  274. s27.onPress = function()
  275. {
  276.    this.startDrag();
  277.    s27._rotation = 0;
  278. };
  279. s27.onRelease = function()
  280. {
  281.    this.stopDrag();
  282.    if(this.hitTest(a5))
  283.    {
  284.       a5._visible = false;
  285.       s27._visible = false;
  286.       score += 10;
  287.       sfx.gotoAndPlay("yes");
  288.       nextFrame();
  289.    }
  290.    else
  291.    {
  292.       s27._rotation = 15;
  293.       s27._x = 194;
  294.       s27._y = 281;
  295.       sfx.gotoAndPlay("no");
  296.    }
  297. };
  298. s14._x = 740;
  299. s14._y = 227;
  300. s14.onPress = function()
  301. {
  302.    this.startDrag();
  303. };
  304. s14.onRelease = function()
  305. {
  306.    this.stopDrag();
  307.    if(this.hitTest(a4))
  308.    {
  309.       a4._visible = false;
  310.       s14._visible = false;
  311.       score += 10;
  312.       sfx.gotoAndPlay("yes");
  313.       nextFrame();
  314.    }
  315.    else
  316.    {
  317.       s14._x = 740;
  318.       s14._y = 227;
  319.       sfx.gotoAndPlay("no");
  320.    }
  321. };
  322.